package com.springcloud.feign;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author zhengzihong
 * @version 1.0.0
 * @FeignClient 调用服务接口name 就是服务名称
 * @date 2019/1/12
 * @Description
 */

@FeignClient(name = "hello-service")
public interface HelloApiFeign {

    /**
     * Feign 书写方式以SpringMvc接口形式书写
     */
    @RequestMapping(value = "/sayHello", method = RequestMethod.GET)
    public String sayHello();
}
